﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bridge.Shared.Redis
{/// <summary>
 /// 缓存过期时间策略
 /// </summary>
    public class RedisExpireTime
    {
        /// <summary>
        /// 一天过期24小时
        /// </summary>

        public const int ONE_DAY = 1440;

        /// <summary>
        /// 25小时
        /// </summary>

        public const int ONE_DAY_AND_AHOUR = 1500;

        /// <summary>
        /// 12小时过期
        /// </summary>

        public const int HALF_DAY = 720;

        /// <summary>
        /// 8小时过期
        /// </summary>

        public const int EIGHT_HOURS = 480;

        /// <summary>
        /// 5小时过期
        /// </summary>

        public const int FIVE_HOURS = 300;

        /// <summary>
        /// 3小时过期
        /// </summary>

        public const int THREE_HOURS = 180;

        /// <summary>
        /// 2小时过期
        /// </summary>

        public const int TWO_HOURS = 120;

        /// <summary>
        /// 1小时过期
        /// </summary>

        public const int ONE_HOURS = 60;

        /// <summary>
        /// 半小时过期
        /// </summary>

        public const int HALF_HOURS = 30;


        /// <summary>
        /// 10分钟过期
        /// </summary>
        public static int TEN_MINUTES = 5;
        /// <summary>
        /// 5分钟过期
        /// </summary>
        public const int FIVE_MINUTES = 5;

        /// <summary>
        /// 1分钟过期
        /// </summary>
        public const int ONE_MINUTE = 1;

        /// <summary>
        /// 永不过期
        /// </summary>

        public const int NEVER = -1;

    }
}
